#!/usr/bin/env python
# -*- coding:utf-8 -*- 
# Author: Jeokayne Ataier


#图标打包进tk 需要转换为二进制的py文件

import base64
open_icon = open("favicon48.ico","rb")
b64str = base64.b64encode(open_icon.read())
open_icon.close()
write_data = "img = %s" % b64str
f = open("icon.py","w+")
f.write(write_data)
f.close()